package com.project.mapper;

import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface IUserMapper {

    public UserBean login(@Param("name") String name,@Param("pwd") String pwd);

    @Insert("insert into t_user(u_name,u_pwd,u_eamil,u_img,u_inDate)values(" +
            "#{name},#{pwd},#{email},#{img},#{inDate})")
    public void add(UserBean user);
}
